import { get, post } from './http'
//登录
export const loginApi = data => post('admin/login',data); //登录

// 阿里云获取视频上传凭证
export const getAliyunInfo = data => get('manage/aliyunVod/createUploadVideo',data); 
export const getRefreshAliyunInfo = data => post('manage/aliyunVod/refreshUploadVideo',data);
export const getAliVideoUrl = data => post('manage/aliyunVod/getPlayInfo',data);
export const getPlayAuthApi = data => post('aliyunVod/getPlayAuth',data);

// 个人中心
export const getUserInfoApi = data => get('manage/user/myInfo',data); //个人信息
export const submitPasswordApi = data => post('manage/user/resetPwd',data); //个人信息

// 公共接口
export const getCommonAllianceListApi = data => get('common/allianceList',data); //获取单位列表
export const uploadFileApi = data => post('manage/upload',data); //上传文件
export const getMajorListApi = data => get('common/majorList',data); //获取专业列表
export const getCommonCourseListApi = data => get('common/courseList',data); //获取课程列表

// 名师课堂
export const getRoleListApi = data => get('common/tagList',data); //获取角色列表
export const submitTeacherLectureApi = data => post('manage/lecture/commit',data); //新增
export const getTeacherLectureListApi = data => get('manage/lecture/list',data); //教师列表
export const getTeacherLectureSearchApi = data => get('manage/lecture/search',data); //搜索
export const deleteTeacherLectureApi = data => post('manage/lecture/delete',data); //删除
export const stayAtTopApi = data => post('manage/lecture/stayAtTop',data); //置顶
export const getTeacherLectureDetailApi = data => get('manage/lecture/detail',data); //详情
export const submitEditTeacherLectureApi = data => post('manage/lecture/update',data); //修改

//实训中心
export const getTrainingListApi = data => get('manage/training/list',data); //列表
export const saveTrainingApi = data => post('manage/training/commit',data); //新增
export const getTrainingDetailApi = data => get('manage/training/detail',data); //详情
export const eidtTrainingApi = data => post('manage/training/update',data); //修改
export const deleteTrainingApi = data => post('manage/training/delete',data); //删除
export const publishTrainingApi = data => post('manage/training/publish',data); //发布
export const trainingStayAtTopApi = data => post('manage/training/stayAtTop',data); //置顶
export const searchTrainingApi = data => get('manage/training/search',data); //搜索

//资讯中心
export const getNewsListApi = data => get('manage/news/list',data); //列表
export const saveNewsApi = data => post('manage/news/commit',data); //新增
export const getNewsDetailApi = data => get('manage/news/detail',data); //详情
export const eidtNewsApi = data => post('manage/news/update',data); //修改
export const deleteNewsApi = data => post('manage/news/delete',data); //删除
export const publishNewsApi = data => post('manage/news/publish',data); //发布
export const newsStayAtTopApi = data => post('manage/news/stayAtTop',data); //置顶
export const searchNewsApi = data => get('manage/news/search',data); //搜索

// 产教联盟
export const getAllianceApi = data => get('manage/alliance/info',data); //获取联盟介绍信息
export const updateAllianceIntroductionApi = data => post('manage/alliance/updateInfo',data); //修改联盟介绍信息
export const getAllianceUnitApi = data => get('manage/alliance/list',data); //获取单位联盟列表
export const getUnitDetailApi = data => get('manage/alliance/detail',data); //查看单位联盟详情
export const getUnitPassApi = data => post('manage/alliance/pass',data); //联盟单位通过
export const getUnitRefuseApi = data => post('manage/alliance/refuse',data); //联盟单位拒绝
export const unitStayAtTopApi = data => post('manage/alliance/stayAtTop',data); //联盟单位置顶
export const allianceSearchApi = data => get('manage/alliance/search',data); //联盟单位查询

// 产教合作
export const getCooperationListApi = data => get('manage/industryNews/list',data); //产教合作列表
export const addAllianceCooperationApi = data => post('manage/industryNews/commit',data); //新增产教合作
export const cooperationPublishApi = data => post('manage/industryNews/publish',data); //发布产教合作
export const cooperationStayTopApi = data => post('manage/industryNews/stayAtTop',data); //置顶产教合作
export const cooperationDeleteNewsApi = data => post('manage/industryNews/delete',data); //删除产教合作
export const searchCooperationNewsApi = data => get('manage/industryNews/search',data); //查询产教合作
export const getCooperationDetailApi = data => get('manage/industryNews/detail',data); //产教合作详情
export const editAllianceCooperationApi = data => post('manage/industryNews/update',data); //产教合作修改

// 人才需求
export const getMindJobListApi = data => get('manage/job/listByAdmin',data); //我的招聘信息的列表
export const getJobListApi = data => get('manage/job/listByInstitute',data); //联盟招聘信息的列表
export const jobPublishApi = data => post('manage/job/publish',data); //我的招聘发布
export const jobStayAtTopApi = data => post('manage/job/stayAtTop',data); //我的招聘置顶
export const deleteJobApi = data => post('manage/job/delete',data); //我的招聘删除
export const getInstituteDetailApi = data => get('manage/job/detail',data); //我的招聘详情
export const refuseJobApi = data => post('manage/job/refuse',data); //联盟招聘拒绝
export const searchJobApi = data => get('manage/job/search',data); //联盟招聘搜索
export const addJobApi = data => post('manage/job/commit',data); //我的招聘新增
export const editJobApi = data => post('manage/job/update',data); //我的招聘修改

// 质量评价
export const getAssessmentApi = data => get('manage/assessment/list',data); //质量列表
export const getAssessmentDetailApi = data => get('manage/assessment/detail',data); //评价详情
export const searchAssessmentApi = data => get('manage/assessment/search',data); //评价搜索
export const deleteAssessmentApi = data => post('manage/assessment/delete',data); //评价删除

// 课程管理
export const getCourseListApi = data => get('manage/course/list',data); //课程列表
export const submitCourseApi = data => post('manage/course/commit',data); //新增课程
export const updateCourseApi = data => post('manage/course/update',data); //修改课程
export const deleteCourseApi = data => post('manage/course/delete',data); //删除课程
export const coursePublishApi = data => post('manage/course/publish',data); //发布课程
export const getCourseDetailApi = data => get('manage/course/detail',data); //查看课程
export const addChapterApi = data => post('manage/chapter/insert',data); //添加章节
export const updateChapterApi = data => post('manage/chapter/update',data); //修改章节
export const deleteChapterApi = data => post('manage/chapter/delete',data); //删除章节
export const addTaskApi = data => post('manage/task/insert',data); //添加任务
export const deleteTaskApi = data => post('manage/task/delete',data); //删除任务
export const updateTaskApi = data => post('manage/task/update',data); //修改任务
export const moveTaskApi = data => post('manage/task/move',data); //移动任务
export const editTaskApi = data => post('manage/task/update',data); //更新任务
export const checkModuleApi = data => get('manage/major/checkUsed',data); //检查模块是否能修改
export const checkTitleExistApi = data => get('manage/course/checkTitleExist',data); //检查课程是否重名
export const checkExamExist = data => get('manage/task/checkExamExist',data); //检查是否存在考试

// 模块修改
export const addModuleApi = data => post('manage/major/add',data); //添加模块
export const deleteModuleApi = data => post('manage/major/delete',data); //删除模块
export const editModuleApi = data => post('manage/major/update',data); //修改模块

// 题库
export const getQuestionList = data => get('manage/questionLib/list',data); //题库列表
export const addQuestionItemApi = data => post('manage/questionLib/commit',data); //创建题库
export const deleteQuestionItemApi = data => post('manage/questionLib/delete',data); //删除题库
export const updateQuestionItemApi = data => post('manage/questionLib/update',data); //修改题库
export const getQuestionListApi = data => get('manage/questionLib/detail',data); //获取题库题目
export const submitQuestionApi = data => post('manage/question/add',data); //添加题目
export const deleteQuestionApi = data => post('manage/question/delete',data); //删除题目
export const updateQuestionApi = data => post('manage/question/update',data); //修改题目

// 我的测试
export const getTestList = data => get('manage/paper/list',data); //我的测试列表
export const addTestItemApi = data => post('manage/paper/commit',data); //我的测试添加
export const updateTestItemApi = data => post('manage/paper/update',data); //我的测试修改
export const getQuestionItemApi = data => get('manage/paper/questionLibList',data); //题库数据获取
export const getSearchQuestionItemApi = data => get('manage/paper/questionList',data); //题库数据搜索
export const addTestApi = data => post('manage/paper/commit',data); //添加测试
export const createRandomPaperApi = data => post('manage/paper/autoCommit',data); //智能组卷测试
export const deleteTestApi = data => post('manage/paper/delete',data); //智能组卷测试
export const paperPreviewApi = data => get('manage/paper/preview',data); //预览试卷
export const updateTestApi = data => post('manage/paper/update',data); //修改试卷
export const testDetailApi = data => get('manage/paper/detail',data); //试卷详情
export const checkedIsEditApi = data => get('manage/paper/checkUsed',data); //检查是否能修改



// 人才管理方案
export const getTrainingProgramListApi = data => get('manage/trainingProgram/list',data); //方案列表
export const getProgramDetailApi = data => get('manage/trainingProgram/detail',data); //方案详情
export const getProgramCourseListApi = data => get('manage/trainingProgram/courseList',data); //获取方案中课程列表
export const addProgramApi = data => post('manage/trainingProgram/commit',data); //提交方案
export const deleteProgramApi = data => post('manage/trainingProgram/delete',data); //删除方案
export const publishProgramApi = data => post('manage/trainingProgram/publish',data); //发布方案
export const updateProgramApi = data => post('manage/trainingProgram/update',data); //更新方案
export const programStayAtTopApi = data => post('manage/trainingProgram/stayAtTop',data); //方案置顶

// 问题管理
export const getAskListApi = data => get('manage/ask/list',data); //问题列表
export const askPublishApi = data => post('manage/ask/publish',data); //发布问题
export const askRefuseApi = data => post('manage/ask/refuse',data); //拒绝问题
export const deleteAskApi = data => post('manage/ask/delete',data); //删除问题

// 回答管理
export const getReplyListApi = data => get('manage/reply/list',data); //回答列表
export const replyPublishApi = data => post('manage/reply/publish',data); //发布回答
export const replyRefuseApi = data => post('manage/reply/refuse',data); //拒绝回答
export const deleteReplyApi = data => post('manage/reply/delete',data); //删除回答

// 成绩与证书
export const getAchieveListApi = data => get('manage/record/list',data); //成绩列表
export const getCertListApi = data => get('manage/record/recordList',data); //证书列表
export const deleteCertApi = data => post('manage/record/certificate/delete',data); //删除证书
export const generateCourseCertApi = data => post('manage/record/generateCourseCert',data); //生成证书
export const uploadTemplateApi = data => post('manage/record/uploadTemplate',data); //上传证书
export const updateTemplateApi = data => post('manage/record/updateTemplate',data); //修改证书
export const recordUpdateApi = data => post('manage/record/update',data); //修改成绩

// 培训管理
export const getTrainingManagerListApi = data => get('manage/trainingClass/list',data); //培训管理列表
export const TrainingManagerCommitApi = data => post('manage/trainingClass/commit',data); //添加
export const editTrainingManagerCommitApi = data => post('manage/trainingClass/update',data); //修改
export const deleteTrainingManagerApi = data => post('manage/trainingClass/delete',data); //删除
export const TrainingManagerStayAtTopApi = data => post('manage/trainingClass/stayAtTop',data); //置顶
export const getTrainingApplyListApi = data => get('manage/trainingClass/applyList',data); //审核列表
export const updateTrainingStatusApi = data => post('manage/trainingClass/updateStatus',data); //更改状态
export const deleteTrainingApplyApi = data => post('manage/trainingClass/deleteApply',data); //删除申请
export const generateTrainingTemplateApi = data => post('manage/trainingClass/generateTrainingCert',data); //生成证书
export const getCertRuleApi = data => get('common/certNum',data); //生成证书
export const deleteOnePlusRecordApi = data => post('manage/onePlusXRecord/delete',data); //删除1+X培训成绩
export const deleteRecordApi = data => post('manage/record/delete',data); //删除教学课堂培训成绩
export const downloadZipApi = data => post('manage/onePlusXTraining/downloadMultiAttachFile',data); //批量下载
export const removeDownloadZipApi = data => post('manage/onePlusXTraining/removeZipFile',data); //删除zip包

// 课程统计
export const getCourseStaticApi = data => get('manage/course/courseDataList',data); //课程列表
export const getCourseStaticNumApi = data => get('manage/course/allCourse',data); //课程统计信息
export const exportCourseStaticApi = data => get('manage/course/exportCourseData',data); //课程列表
export const getCourseDataDetailApi = data => get('manage/course/courseDataDetail',data); //课程统计详情列表

// 用户管理-个人中心
export const getUersListApi = data => get('manage/personalUser/userList',data); //课程列表
export const updateStatusApi = data => post('manage/personalUser/updateStatus',data); //更新状态
export const commitUserApi = data => post('manage/personalUser/addUser',data); //添加用户
export const deleteUserApi = data => post('manage/personalUser/deleteUser',data); //删除用户
export const updateUserApi = data => post('manage/personalUser/updateUser',data); //修改用户
export const setAuthApi = data => post('manage/personalUser/setAuthority',data); //修改权限
export const toStudentDetailApi = data => get('manage/personalUser/classInfo',data); //查看学生详情

// 1+X  考务管理
export const getExamineeManageListApi = data => get('manage/onePlusXExam/list',data); //考务列表
export const getProfessionListApi = data => get('common/professionList',data); //职业列表
export const getSkillListApi = data => get('common/skillList',data); //技术列表
export const addExamineeApi = data => post('manage/onePlusXExam/addExam',data); //添加考务
export const getExamineeDetailApi = data => get('manage/onePlusXExam/detail',data); //获取考务详细信息
export const updateExamineeApi = data => post('manage/onePlusXExam/update',data); //修改考务信息
export const deleteExamineeApi = data => post('manage/onePlusXExam/deleteExam',data); //删除考务信息
export const getAllAssignInvigilatorApi = data => get('common/invigilatorList',data); //获取所有的考评员列表
export const addInvigilatorApi = data => post('manage/onePlusXExam/addInvigilator',data); //添加考评员
export const deleteInvigilatorApi = data => post('manage/onePlusXExam/deleteInvigilator',data); //删除考评员

// 报名查看
export const getExamineeListApi = data => get('manage/onePlusXExam/examineeList',data); //考生列表
export const addSignExamineeApi = data => post('manage/onePlusXExam/addExaminee',data); //添加考生
export const checkExamineeIdCardApi = data => get('common/checkIdCardNum',data); //检查考生是否存在
export const checkExamineeIdPhone = data => get('manage/instituteUser/checkTelephone',data); //检查考生手机是否存在
export const registExamineeApi = data => post('manage/onePlusXExam/registExaminee',data); //注册考生
export const updateSignExamineeApi = data => post('manage/onePlusXExam/updateExaminee',data); //修改考生
export const deleteSignExamineeApi = data => post('manage/onePlusXExam/deleteExaminee',data); //删除考生
export const submitAddExamineeApi = data => post('manage/onePlusXExam/bulkAddExaminee',data); //确认添加考生

// 1+X考务成绩录入
export const onePlusRecordListApi = data => get('manage/onePlusXRecord/recordList',data); //成绩列表
export const generateExamCertApi = data => post('manage/onePlusXRecord/generateCert',data); //证书生成
export const deleteOnePlusCertApi = data => post('manage/onePlusXRecord/deleteCert',data); //删除证书

// 1+X培训管理
export const getOnePlusTrainingListApi = data => get('manage/onePlusXTraining/list',data); //培训列表
export const addOnePlusActiveApi = data => post('manage/onePlusXTraining/addTraining',data); //新增培训
export const getActiveDetailApi = data => get('manage/onePlusXTraining/detail',data); //获取培训详情
export const updateOnePlusActiveApi = data => post('manage/onePlusXTraining/update',data); //修改培训
export const deleteActiveApi = data => post('manage/onePlusXTraining/delete',data); //删除培训
export const getTrainingPeopleListApi = data => get('manage/onePlusXTraining/trainerList',data); //培训人员列表
export const updateTrainingPeopleStatusApi = data => post('manage/onePlusXTraining/updateStatus',data); //更改培训人员状态
export const deleteTrainerApplyApi = data => post('manage/onePlusXTraining/deleteTrainerApply',data); //删除报名人员
export const onePlusTrainingStayAtTopApi = data => post('manage/onePlusXTraining/stayAtTop',data); //置顶

// 站点管理
export const getSiteListApi = data => get('manage/site/list',data); //站点列表
export const getSiteDetailApi = data => get('manage/site/detail',data); //站点详情
export const updateSiteStatusApi = data => post('manage/site/updateStatus',data); //站点状态变更
export const deleteSiteApi = data => post('manage/site/delete',data); //删除站点

// 专家库
export const getExpertListApi = data => get('manage/expert/list',data); //专家列表
export const getTrainerListApi = data => get('manage/expert/trainerList',data); //其他专家列表
export const getExpertDetailApi = data => get('manage/expert/detail',data); //专家详情
export const updateExpertStatusApi = data => post('manage/expert/updateStatus',data); //更改专家状态
export const deleteExpertApi = data => post('manage/expert/delete',data); //删除专家
export const changeQualifyApi = data => post('manage/expert/qualify',data); //切换资格

// 统计
export const getAnalysisApi = data => get('manage/onePlusXRecord/dataAnalysis',data); //统计信息

// banner图
export const bannerListApi = data => get('manage/banner/list',data); //banner图列表
export const addBannerApi = data => post('manage/banner/add',data); //新增banner
export const editBannerApi = data => post('manage/banner/update',data); //修改banner
export const deleteBannerApi = data => post('manage/banner/delete',data); //删除banner
export const commonMoveApi = data => post('manage/banner/move',data); //删除banner

// 机构用户
export const getUserSchoolListApi = data => get('manage/instituteUser/list',data); //机构列表
export const addInstituteUserApi = data => post('manage/instituteUser/add',data); //添加机构
export const checkPhoneApi = data => get('manage/instituteUser/checkTelephone',data); //检查手机号
export const deleteInstituteUserApi = data => post('manage/instituteUser/delete',data); //删除机构
export const updateInstituteStatusApi = data => post('manage/instituteUser/update',data); //修改机构

// 子管理员
export const getAdminListApi = data => get('manage/admin/list',data); //子管理员列表
export const checkAdminPhoneApi = data => get('user/checkPhone',data); //检查子管理员手机号
export const addAdminUserApi = data => post('manage/admin/add',data); //添加子管理员
export const updateAdminUserApi = data => post('manage/admin/update',data); //更新子管理员
export const deleteAdminApi = data => post('manage/admin/delete',data); //删除

export const resetRecordApi = data => post('manage/record/reset',data); //重置考试成绩



